concept of object states in a hibernate application